package cn.miju.admin.system.vo;

import cn.miju.admin.framework.model.BaseInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * <pre>
 * 角色保存
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-04-03 16:09
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class RoleSaveInVO extends BaseInfo {
    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID")
    private Long id;
    /**
     * 角色名
     */
    @ApiModelProperty(value = "角色名", required = true)
    @NotBlank(message = "传入角色名不能为空")
    private String roleName;
    /**
     * 角色代码
     */
    @ApiModelProperty(value = "角色代码", required = true)
    @NotBlank(message = "传入角色代码不能为空")
    private String roleCode;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
}
